#include "stm32f10x.h"
#include "FreeRTOS.h"
#include "Task.h"

#include "led.h"
#include "beep.h"

TaskHandle_t myTaskHandle;

void myTask(void* arg)
{
	while(1)
	{
		LED_On();
		vTaskDelay(1000);
		LED_Off();
		vTaskDelay(1000);
	}
}

int main(void)	
{
	LED_Init();
	BEEP_Init();
	
	xTaskCreate(myTask,"myTask",128,NULL,2,&myTaskHandle);
	vTaskStartScheduler();
	while(1)
	{
//		BEEP_On();
//		LED_On();
//		delay(0xFFFFF);
//		LED_Off();
//		delay(0xFFFFF);
	}
	//return 0;
}
